package com.capgemini.fs.app.ekms.service;

import java.util.List;

import com.capgemini.fs.app.ekms.model.Forum;
import com.capgemini.fs.app.ekms.model.Reply;
import com.capgemini.fs.app.ekms.model.Topic;
import com.capgemini.fs.app.ekms.model.User;

public interface TopicService extends Service{
	public void updateTopic(Topic topic);

	public Topic getTopicById(Integer id);
	
	public void Create(Topic topic);
	
	public void createTopic(Topic topic,User author, Forum forum);
	
	public Integer getRepliesCount(Topic topic);
	
	public Reply getLastPost(Topic topic);

	public List<Topic> queryTopic(final Integer forumId,final String subject, final Integer status);
}
